import os
import subprocess  

cmd = ['source', '/usr/local/bin/virtualenvwrapper.sh', '&&', 'mkvirtualenv', 'test1', '--system-site-packages']
subprocess.call(cmd)

#cmd = 'source /usr/local/bin/virtualenvwrapper.sh && mkvirtualenv %s --no-site-packages' % ('testname')
#head = subprocess.Popen(cmd, executable='bash', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
#for line in head.stdout.read().splitlines():
#    print line

#os.popen('mkvirtualenv --system-site-packages prueba2')
